<template>
  <div>
    <h1 class="title">配置预览</h1>
    <div v-loading="loading" class="box1">
      <div class="bgBlock">
        <el-divider content-position="left"><h2>基本信息</h2></el-divider>
        <div class="fontInfo">
          <p style="width: 50%">
            任务名称：<span>{{ data.taskName }} </span>
          </p>
          <p style="width: 50%">
            任务描述：<span>{{ data.desc }} </span>
          </p>
          <p style="width: 50%">
            任务模式：<span>{{ data.start.join(',') }} -- {{ data.end.join(',') }}</span>
          </p>
        </div>
      </div>
      <div class="bgBlock">
        <el-divider content-position="left"><h2>Select配置</h2></el-divider>
        <div class="fontInfo">
          <p style="width: 50%">
            数据源名称：<span>{{ data.taskName }} </span>
          </p>
          <p style="width: 50%">
            数据源类型：<span>{{ data.start.join(',') }} -- {{ data.end.join(',') }}</span>
          </p>
          <p style="width: 50%">
            数据源ip：<span>{{ data.desc }} </span>
          </p>

        </div>
      </div>
    </div>
  </div>
</template>

<script>
import codeEditor from '@/components/CodeEditor/index.vue'

export default {
  components: { codeEditor },
  props: ['data'],
  dicts: [
  ],
  data() {
    return {
    }
  },
  created() {

  },
  async mounted() {
    this.loading = false
  },
  methods: {
  }
}
</script>

  <style lang="scss" scoped>
  .box1 {
    margin: 40px auto;
    .bgBlock {
      border: 1px solid #dcdfe6;
      width: 100%;
      margin: 20px 0;
      padding: 15px;
      border-radius: 5px;
      box-shadow: 0px 0px 5px 1px #f8f8f8;
    }

    h2 {
      font-weight: 700;
      font-size: 20px;
      color: rgb(64, 158, 255);
    }

    span {
      font-weight: 500;
      font-size: 16px;
    }

    .fontInfo {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      padding: 0 10px;
      font-size: 14px;
      color: #606266;
      font-weight: 700;
      // justify-content: space-between;
      font-size: 16px;
      p {
        width: 25%;
      }
    }

    .radioBox {
      text-align: right;
      font-weight: 700;

      p {
        margin-bottom: 0;
      }
    }
  }

  .el-col-1 {
    margin-top: 5px !important;
  }

  span {
    vertical-align: middle;
    font-size: 14px;
    color: #606266;
    margin: 0;
    font-weight: 600;

    button {
      margin-left: 15px;
    }
  }
  </style>

  <style lang="scss" scoped>
  .title {
    margin-top: 15px;
    color: #333;
    font-size: 22px;
    line-height: 1.25;
    font-family: alimama, webfont-notdef;
    font-size: 18px;
    box-sizing: border-box;
    font-weight: 600;
    text-align: left;

    p {
      margin: 10px 0;
      font-size: 14px;
      font-weight: 400;
      color: #888;
    }
  }
  </style>
